package one.stand.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import one.stand.aop.ApiController;
import one.stand.model.ResultModel;
import one.stand.request.AssembleRequest;
import one.stand.response.AssembleResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 拼团信息
 * Created by renz on 2019/9/18 20:03
 */
@RestController
@RequestMapping("userApi/assembles")
@Api(description = "拼团信息",tags="拼团信息")
public class AssembleController extends BaseController {

    @PostMapping("/getGoodsAssembleInfo")
    @ApiOperation(value = "拼团详情")
    @ApiImplicitParam(name = "assembleId", value = "拼团id", required = true, paramType = "Integer")
    @ApiController(isLogin = true, paramClass = AssembleRequest.class)
    public ResultModel<AssembleResponse> getGoodsAssembleInfo(@RequestAttribute AssembleRequest request) {
        return crmFegin.getGoodsAssembleInfo(request);
    }
}
